﻿/// Write a program that converts a string to a sequence of C# Unicode character literals.
/// Use format strings. Sample input:
/// Sample input: "Hi!".
/// Expected output: "\u0048\u0069\u0021".


using System;
using System.Text.RegularExpressions;

class zad10
{
    static void Main()
    {
        string str = "Hi!";
        foreach (var symbol in str)
        {
            string toPrint = String.Format("{0}", "\\u" + Convert.ToString((int)symbol).PadLeft(4,'0'));
            Console.Write(toPrint);
        }
        Console.WriteLine();
    }

}

